added a conditional to share images via the media store so that other apps can access them