Changed mode to RGB, from index.
Fixed require bug for CPTs.