handle edit_image for non valid id