Got some start code from the net working

I can now open and display an image