Class to process image with PHP GD2 library and low level pixmap function