fixing rerender on picture sort