General image generation