test added for case of missing image file.
fixed reference of dom and @footerpos, @intmrk value.
getNumLines and a getStringHeight function fixed the problem which is wrong by the case of two or more lines.
Update version 1.18.2