check null condition to display default image