changing encoding type on hstd file creation in images.js