A Python code to re-size images.