Rewrite camera controller