Translate the colors in a provided image given an input RGBA array.