Move camera bounds logic to separate function