Fixed bug creating images without textures.