fix issue when pictures is null