image: return proper error in RemoveImage