Code clean, refactoring camera calculations