Context is now frozen, so we must work on a copy.

Seems to me that this is all that is needed to make the document_images run on Odoo 8.