Changing picture data structure to array of color values.