Changing image colour online

If I understand the issue correctly, this is about changing the colour behind a mask.

You could present a coloured polygon behind an image with a transparent foreground rather than using the mask feature.