improved svg image scaling in viewer