fixed bug

Here's my solution for the app crashing after deleting all of the images and using the pull-to-refresh.