An image generator in Python