class Image def initialize(data,conf) @data = data @name = data.url.gsub!(/\W/,'').gsub!(/\_/,'').to_s @conf=conf.data end def normalizespot #divide spot.png intensity by max. position reps (@data.reps) intensity = (100-(100/@data.reps).ceil).to_s normalize = "convert "<<@conf['dotimage']<<" -fill white -colorize "<