Added gamma correction to BlockPalette.FindBestMatch
Fixed images getting incorrectly cropped if they don't fit in the map vertically
Fixed images facing the wrong way
Fixed gamma correction (mostly) in BlockPalette, and fixed /PDI drawing palette layers in the wrong order.
Improved the color picking algorithms.
Replaced old /DrawImage with the new implementation.