massive update, combined scatterImg and scatterGrid for simplicity