A node.js script to calculate the best corner to watermark a image