changes to fix image view issue on ios8

changes to fix image view issue on ios8