update photo on image input