Bug 1024440 - Rename and modify ImageResolution to handle video files

* Includes fix to sort directory listing before processing
Merge pull request #21600 from sfoster/bug-1024440-media-resolution

Bug 1024440 - Rename and modify ImageResolution to handle video files. r=yurenju