bugfixes in download
added base class for images