[Media] Image expansion breaks thread refreshing

post.files[i] becomes undefined in the spoiler images check in !150 (merged) due to the extra img tags from expanding images.