Proper icon size in toolbar

Hi,

I have an extension which includes a toolbar with a set of icons. I used the documentation below to define my icons:

https://wiki.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/AddOns/Images_for_Toolbars_and_Menus

I use 16x16 PNGs for small ones and 26x26 PNGs for big ones, but some of the icon themes (like default Tango) seem to require 24x24 instead.

Is there any way to provide a different size per icon theme, so the icons look crisp no matter which icon theme is used?