$newimage->colorAllocate($red,$green,$blue);