When the "Open File" box is pressed, a file dialogue is opened. If a valid image file is selected, an NSImage is created from it.