Basic example of creating an image doesn't work