testing a camera function