BUG: misc: use mode rb for loading binary image files