How can I tell if an image is part of another image?
This problem can be treated as signal/image detection or image registration. From the image registration perspective, there is a good tutorial that is exactly what you need: Registering an Image Using Normalized Cross-Correlation