ImageUtils.py: mode for opening new file changed from w to wb