Refactored thumbnail size dependent calculations
Moved thumbnail sizes array to config.def.h