Direct imaging constraints on planet populations detected by microlensing