Fixed a bug when using an external image view.