Fixed problems with image wrappers and their size, added image preloading. Refactoring.