Don't crash when no image is selected