added edge locking to camera