PHP based image colour remapper