Preserve source image extension and metadata info
Preserve source image extension and metadata info

Preserving the source image extension avoids unneeded conversion.
It also ensures best results since the trained data is based on the same output format.
Explicitly pass the image metadata since the PIL image.save method doesn't do it by default 
for some formats (PNG for example) - fixes #96
madmaze/pytesseract