Images found online are not necessarily available for use unconditionally. Very frequently, creators sharing their images use licences to define the allowed usage.
A very easy and effective way of doing so is using the Creative Commons Licences. Every license helps creators retain copyright while allowing others to copy, distribute, and make some uses of their work — at least non-commercially and it also ensures licensors get the credit for their work they deserve.
There are also images online that they are available for use. They are on the Public Domain. This case includes images whose copyright is overdue or no longer valid. Nobody owns the copyright for these images and hence they can be used by everyone and for any reason.
There is also the option to purchase images online. The Royalty-Free licence allows the owner to use the purchased image as many times as he/she wishes.
Use of images for educational purposes is free, under the condition to make a reference to the source. Students and teachers can use any image, regardless of its licence when intended for education (projects, teaching, etc).
Belmore, Rebecca. Mawa-che-hitoowin: A Gathering of People for Any Purpose. 1992, National Gallery of Canada. Native North American Art by Janet C. Berlo, Ruth B. Phillips, Oxford University Press, 1998, p. 237.
Goya, Francisco. The Family of Charles IV. 1800, oil on canvas, Museo del Prado, Madrid. Gardener's Art Through the Ages, 10th ed., by Richard G. Tansey and Fred S. Kleiner, Harcourt Brace, p. 939.
Examples:
Picasso, Pablo. Three Musicians. 1921, oil on canvas, Museum of Modern Art, New York. Wikipedia, 2006. https://en.wikipedia.org/wiki/File:Picasso_three_musicians_moma_2006.jpg. Accessed 1 February 2017.
The Great Wall, China. Photography. Britannica ImageQuest, Encyclopædia Britannica, 25 May 2016.
quest.eb.com/search/151_2491975/1/151_2491975/cite. Accessed 24 Aug 2020.
How do I cite a photo or other image reproduced in a Web site article?
How do I cite an image from a slide presentation on the Web or from a lecture I attend?
How do I cite photographs or other images that I use in a PowerPoint presentation or Web project?
If I have edited an image for publication, how do I cite it?
How do I cite a museum image that I viewed in person or online?