Reorganizes images inside the library.