Set open mode to 'rb' for windows

Fixes issue where images wouldn't load