Added Photo library function and linked the buttons to their respective functions