Graphic optimizations 1

The main optimizations here are in the CalGrayCS conversion and JPG decoder's getLinearizedBlockData and convertCmykToRgb which got 2.16x and 1.5x faster respectively while using less memory ( and generating less garbage collection ).