correct delete, update and fileupload image