Better file extension check.
Add option for specifying desired output format.

* Use input format as default to preserve format since the imgflo
server currently returns jpg if unspecified.
Version bump.