Bug 1081012 - Move DecodePool and related helpers out of RasterImage. r=tn