simplify extension check
allow handlers to modify the data uri for png case
refactor data uri handling
split seen check out for clarity
switch to file type encoders
whitespace and rebase corrections