clean up image add the view to windows