create processor.js to handle processing of images. app.js now only handles input