Saving to photo library using capture photo.

Is there any way to save a photo to a device’s photo library using media.capturePhoto? I know that display.capture allows you to set saveToPhotoLibrary equal to true and the image will be saved as a .png. Is there any way to bypass this and automatically save it to the photo library just using media.capturePhoto?