Stuff changed and added to prepare for Displaying images. Currently doesn't work. Commented out to prevent other things braking if you have time work on it.