Added check for gradient w.r.t. images
Improve test of backprop by randomly projecting.