checked if image is null