Fixed crash bug

Crash happened when you started to import and image, and then clicked
back.