Did your contact photos come from a source outside of the iPhone, such as facebook? If so, then it is likely a setting.
For example, for facebook you would go to iPhone Settings > Facebook and make sure contacts is turned on. Then on the bottom of that screen, tap update all contacts.
If your contact images came from elsewhere, it would be handled differently.