Then public domain is not the choice of yours.
Public domain means just that. People can use it for whatever purposes, even without telling who the copyright holder is1.
Consider a permissive license, that requires everyone reproducing the image to name the copyright holder.
Then, people can still sell the photo, but as they have to tell who the copyright holder is, every prospective buyer knows who the copyright holder is, and they can directly contact the copyright holder for a cheaper priced license, let's say $0.
Or, consider a "share alike" license that requires all modifications to have the same license.
Or a "noncommercial" license that prevents commercial use without a special permission from the copyright holder.
(1) strictly speaking, when releasing something as public domain, there may not longer be any copyright holder depending on the jurisdiction. In some jurisdictions, releasing something as public domain is just giving permissions do to anything with the work to anyone.