Issue #2550453 by Dave Reid: Fixed file previews generated and rendered every time media_wysiwyg_format_form() is called.