Update image.py

fix the bug when loading local image file