for python3, GetBootMedium needs to open image file as binary