fix to the image upload bug in classified model