Add OnImage callback function.