partial fix for a bug introduced with imageview refactoring.