added assert for no images found