I made a script that takes an image and generates a code to render the image in another script.
from PIL import Image