refactored image map to prepare performance improvements
make map iPhone compatible
optimize getRGBAsFromImageX:andY