split up the input-image directive into 2 parts. first part captures the image, the second part turns the image into a dataURI.
refactored adding the object URL into it's own directive.