finished the dynamic positioning of images. fixes #30