Fixed NPE when Color Selection is used in Tools
Fixed #99 'RasterFormatException: Incorrect scanline stride' in pure Java mode JAI on JRE >= 1.7.0_25