small bug fix in image.rb