Modified class to use the new Camera class.