Like topic says, there is some inconsistency with media entities where type is photo.
Here’s one example:
https://api.twitter.com/1.1/statuses/show/799628014640308224.json?tweet_mode=extended
entities.media contains one photo while extended_entities.media contains four photos.
When this tweet was retrieved with the Streaming API, both the extended_tweet.entities.media and extended_tweet.extended_entities.media contained four photos