Added resize handler to main.cpp, fixed bugs with CameraManager and PerspectiveCamera