fix duplicating image when uploading image to slide field