Change to configurable  imagefile
code for window resizing