When delete last photo, auto return previous viewcontroller