Although a few spots on a photo can be fixed by running the image through your favourite photo editing software, the source of the problem should be investigated.
If you use a DSLR, black spots are most likely caused by dirt directly on the surface of the cameras sensor.
I've noticed this problem with photos taken on my Pentax K-30 during the last few months, but only just found the time to take a closer look.