Update lib/image_science.rb

moving flags declaration to beginning