Creating images in memory works