Update for iOS 8 based on StackOverflow post.

Hi @Kjuly,

Updated as discussed to avoid dropping the other changes. I've also wrapped the repeated code for adding the photo to the library into a block.

Cheers,

Alex