Attorneys announced a settlement Monday in a lawsuit over who owns the copyright to selfie photographs taken by a monkey before a federal appeals court could answer the novel legal question.

Under the deal, the photographer whose camera was used to take the photos agreed to donate 25 percent of any future revenue from the images to charities dedicated to protecting crested macaques in Indonesia, lawyers for an animal-rights group said.

Attorneys for the group and the photographer, David Slater, asked the San Francisco-based 9th U.S. Circuit Court of Appeals to dismiss the case and throw out a lower court decision that said animals cannot own copyrights.