Fixes picture assignment in an element editor.

Since the editor partial is getting cached, we need to touch the content manually when assigning a picture. Otherwise it would just render the cached content which is the same as before.