Bug 1812932 - Add size outvar to GetImageBuffer. r=gfx-reviewers,bradwerth