move images out of base 64 encoding