added a check for the image dimension ordering convention
added a check for the image dimension ordering convention

cleverhans-lab/cleverhans,openai/cleverhans,carlini/cleverhans,carlini/cleverhans,cleverhans-lab/cleverhans,fartashf/cleverhans,cihangxie/cleverhans,cleverhans-lab/cleverhans