def check img