edited saveimagecontrol