edited MarkImage.py, almost working