set image to window