Fix bug about image clicking.