add some functions in class Image in __init__.py