can create encoded images
encode has callback
tidy
can decode an image
textstring decode
refactor
decode has callback