Added option, returnUri to return data uri instead of setting it on passed in image element.