fix similar variable name in image.rb that caused a bug in score calc