rough fix for pool count not being updated on image delete