improved image convolution; added multiline text extents support