Move the labeled images into the correct order