boundaries fix in CoolCamera