Also search for png files.
If the file doesn't have an exif section, just skip that.
Remove the erroneous variable reference.
Also do gif files.
When saving image files, don't mandate JPEG. Instead, let PIL determine the format from the filename.
Also search for bmp files.
If an image doesn't have exif data, don't try to rotate it.
Quick implementation of get_exif_datetime.
Fix the comment.
Move get_exif_datetime and get_exif_tag_value to a more appropriate place.
pep8
Merge pull request #5 from izrik/support-non-jpg-files

Support non jpg files, thanks izrik!