We were running into memory issues when we were migrating high resolution images. Quick research showed that there's an alternative implementation for base64 that's better. I'm currently field-testing this in a fork, will come back later to submit a pull request.