Image modal; append to `body` as well as link modal

i'm using wysihtml5 inside popover. Image modal works incorrect although link modal is ok. I found that in showing method for image there is no `appendTo('body')`.
When I add it image works fine.