image exist condition