Rename variable format to img_format.
No longer limit image format.