the smallest image should be first in the array. Bugfix for the style generator