Fixed zoom problems after error msgs.

The zoom factor was set to 1 after error messages about image loading.
This commit fixed this issue.