Fixed issues with the persistence engine not being able to retrieve already processed images.