add the ability to use custom thumbnail without the need to use media (media === "")

removed && data.media != "" check at line 24 to allow the use of custom thumbnail even without the use of the media attribute (setting media to empty string: media == "")