Implement camera api (close #1)