Fixed image and thumbnails upload.