fixed rgb also becoming inverted