img is defined