Something like this:
imgw1, imgw2, imgw3, imgw4
imgw1 knows about imgw2, imgw3, imgw4
imgw2 knows about imgw1, imgw3, imgw4 etc.
Therefore we can cache one file one time at one node and request each node before process resize. It prevents overcaching