Saves with correct file-extention.

Saves images in a separate folder for each format and with correct
extention.