Don't animate images that will be posted as JPGs (#8760)
* don't play gifs that'll be png'd
* add media inset border
* fix unnecessary typecast
* Revert "fix unnecessary typecast"
This reverts commit 3a8bcc92774d83f6ece0577f919f527cd920761b.
authored by