Autodetect image size.
JPG support.
Minor changes.
Minor changes.
Minor changes.
Minor changes.
Supports 24-bit png.
Restructuring.
Re-structuring.
Re-structuring.