bug fixes of ImageView