adding parameter position on image upload function