Fix slideshow image offset and crash when deleting all images while in viewer