flat and nested image palettes needs to be split up into 2 arrays