Change Window Title

If anyone could help me that would be AWESOME! I am using this code to pull up a jpeg in another window:


The title of the window is the name of the jpeg and pixel size. How can I change the name of the window so that it isn’t the name of the jpeg?