modified processimg.rb