Add a test to add a photo to a contact from the gallery

This addresses issue #385