Generate Image Using Python