fixed several bugs, images now loaded only on demand (only when actualy used in a texture), also some thumbnails work