Refactored image byte creation for use with multiple formats.
Removed conversion of calibration data to byte array.