Fixes image editing from document form