Minor edit: made x and y coords in runImg function local
Maybe I need a different file for applying potrace algorithm
and vector.js can be used solely for creating svg?