def _get_pil_format(self, extension):
return Image.EXTENSION[extension.lower()]<EOL>
:param extension:
    The file name extension (.png, .jpg, etc...)

:returns:
    The file format PIL needs from the file extension.
    Eg. PNG or JPEG