Changed RED/GREEN/BLUE and ROTATE_* macros to functions/constants.
Renamed Image to RGBAImage.
Attempt to refactor image stuff.
Removed RGBImage, one RGBAImage class with special alpha handling
should do it for JPEG support.
Implemented JPEG write support (still a bit dirty).
Forgot CMakeLists entries for libjpeg.
Implemented jpeg read support (still a bit dirty too).
Fixed alpha handling when writing jpegs.
Added configuration options to specify image format.
Tiles are rendered to the specified image format.
Web interface uses the right images (.png/.jpg).
Incremental rendering check takes care of different image formats.
Last commit: Forgot tileset.cpp/h.
Simplified some stuff with the getImageFormatSuffix method.
Image format is properly handled when increasing the zoom level
(not yet tested...)
Hardcoded tile background color for jpegs
(Add an option for this later on)
Added image_format to map.settings file. Still needs some refactoring.
Fixed some dumb build problems.
Merge branch 'master' into jpeg_support
Merge branch 'master' into jpeg_support