edit an image in popup window