[PATCH 5/5] d3dx10: Use shared d3dx code in get_image_info when possible.