word/edit: precalculate image width and height