added camera reset function