Completed camera functionality yet to refactor the code