Try to make mapping from i,j -> x,y more explicit.
Increase padding.