resized images before processing
added #define for variable parameters