Added cancel button functionality to photo upload view.