double image upload bug fix