You must wait until ImageLibrary has finished processing its images

why?