Image recognition API for tagging, categorization, and face recognition