Added support for different icon sizes.