Fix rating system due to changes in replace/upload of image