basic workings of take photo