If it is a public tree on ancestry I think the assumption is that it's fine to copy and upload to your own tree.
However, if it was a private tree that you have given access to, it is rather rude that they didn't ask permission first.
Take this as a lesson learned and maybe next time someone requests to view your tree, state that they are welcome to use your research to help theirs, but please do not copy and upload my pictures etc, sometimes if you make it clear they may take notice.