Sage camera code