I modified the below locally to replace the 1366x768 with 1920x1080 so its higher res:
outputhtml = output.replace("", "").replace("", "").replace(/(?:\r\n|\r|\n)/g, '').replace("_1366x768.jpg", "_1920x1080.jpg").trim()
feel free to add to next push/iteration