Connor McAdams : d3dx9: Split off image decompression into a helper function.