fix overlapping images

fixed issue #10