adding support to take a photo