- TODO: rewrite bximage / bxcommit stuff and use hdimage C++ classes to support more commit / conversion types and to get rid of this code duplication.