media modal now inserts correct media markup