If anyone told you this, they were badly misinformed, or you're not describing the situation accurately.
Wikipedia does not require you to give up your copyright or ownership; what they do require is that you license your images under an acceptable free license (the exact details of what's acceptable are on the site somewhere). You can definitely retain the right to be attributed as the creator of the image. You can also insist that any re-user must release their derived work under the same license.
In general, the Creative Commons Attribution Share-Alike license (CC-By-SA) is the simplest and most common of these licenses; you can read its terms at creativecommons.org if interested.
Did you, perhaps, wish to have some other constraint on the images, for example restricting re-use (permission only for Wikipedia, or only for non-commercial use)?