This should not be hard coded to error about rgb24.