Adding in stuff for getting image data