A Tour of Go 59 Exercise: Images (compile error)

演習:Image 型を定義して、 必要なメソッド を実装し、 pic.ShowImage を呼び出す。


 以下のようにRectangleが未定義とエラーになる。
何故?なんだ><

prog.go:5: imported and not used: "image"
prog.go:12: undefined: Rectangle
prog.go:17: undefined: Rectangle
package main

import (
    "code.google.com/p/go-tour/pic"
    "image"
    "image/color"
)

type Image struct{
    Pix []uint8
    Stride int
    Rect Rectangle
}

func (p *Image) ColorModel() color.Model { return color.RGBAModel }

func (p *Image) Bounds() Rectangle { return p.Rect }

func (p *Image) At(x, y int) color.Color {
    if !(Point{x, y}.In(p.Rect)) {
		return color.RGBA{}
	}
	i := p.PixOffset(x, y)
	return color.RGBA{p.Pix[i+0], p.Pix[i+1], p.Pix[i+2], p.Pix[i+3]}
}

func main() {
    m := Image{}
    pic.ShowImage(m)
}