added the ability to get the image object