TST: open image file in binary mode
Merge pull request #3460 from cgohlke/patch-1

TST: open image file in binary mode