prevent null photos