working on passing variable to edit existing picture