grad.m test image creator improved