Gauge mediation with D-term SUSY breaking