Fixing thumbnail generation in category page