Removed camera code from app.cpp and created Camera class.