Generate Image Using Python Code