improve image scaling
improve calculation for max zoom size
update WXKit