Adding some more code around getting images and image parameters