Fix #bug 2460: <img> width & height now properly filled when resizing image