resize library elements to given tilesize