Fixed stupid bug where the function getting images wasn't returning anything