Allow sourceType modification

I needed to use this with the photo library and the camera.