Difference imaging photometry of blended gravitational microlensing events with a numerical kernel