Adds a function that accepts an image.Image, so an image already pre-loaded in memory can be displayed directly.