Performing image operations using remote APIs