A simple image validation API