Fixed python3 related errors in imageconverter.py