Added testpattern call to camera.cpp