add condition for blank image