Added delegate for image clicking