How to Create an Image Converter in Python