Converting imagePanelControl