Also, consider that this is no longer only a success callback, it might make sense to dry it out, or make another function, or dry out addMediaToGallery.