better image preloading and bugfixes in general