[Changed] Centralised the code for the thumbnails upload to S3 and the deletion of the old also on S3