fix for issue #102: second inserted image gets dimentions of first inserted image