Deprecate the public APIs taking Image as input