Utilities for *.bfg image file format