I assume you're asking how/why the icepack works: via vasoconstriction.
The application of cold causes the blood vessels to constrict, making them smaller. At the same time, this mechanism also causes any excess lymphatic fluid to be driven out of the surrounding tissue, reducing puffiness, or "bags"