Efficient thumbnails creation