debug image.rb for image display