Every database is different! Check each database's license terms if you are unsure if you can use an image.
Typically, images from databases can be used for:
Often (but not always), images cannot be used for:
Duke Digital Repository / Public domain