Is there a way to make drag and drop move the image onto a sort of grid, like a 32x32 grid instead of pixel based?
Develop games in your browser. Powerful, performant & highly capable.
No but you could do it via mathematics (working out pixel based on grid position) or you could have a 'target' sprite in the middle of every grid point (if not too huge) and 'on dropped' just move to the one that's overlapping your dropped item.