resized svg document to image