resize the doc images