fixed rgb processing API