add public invalid function for attr/image/result