conditional dispaly of image