Generate thumbnails for every uploaded image