how did the camera obscura record a picture