Resize photos in a directory proportionally using Python