Fix image upload for edit page