Faster thumbnail generation(Thanks to squadzone)