image: introduce Intersect and Union rectangle methods. R=r, rog, nigeltao CC=golang-dev https://golang.org/cl/2115043