graphic: update GetScaleRectInImage()
logger: fix issue that Debug() still dispatch % tag in message