imagewindow almost working