Made good, working camera code