head pic callback function