fixed images issue #229

Fix for images issue where images couldn't be added to preop and post
op in the same session.