Fixed a bug where if resize has just one argument, always enlarge the image
Replaced Icon class by IconExtractor class, that works better