Fix imageCache promise assignment.