from PIL import Image
new_im = Image.new("RGB", (200, 100), color='red')  # Creates a 200x100 red image
new_im.save("red_rectangle.png")
print('image saved')