adds support for taking a picture from camera