bugfix
now storing images to webapp dir
Support for compounds and images