Fix behavior if image path is null.