Set the image, fixed up loads of code

still doesn't work though, but at least it compiles