b5i to mdf conversion is probably related to export/conversion between disk images from two different apps, namely BlindWrite (.b5i) and Alcohol 120% (.mdf). Most disk image handling tools actually offer support to different formats, so it should not be hard to find one suitable for your needs.
You can also use tools like ISObuster that support pretty much any disk image format.