A sample python code to create, save and load images.