Fix the post request version of generate thumbnails