adds rudimentary support for resizing images in data-uri