Moved imaging functions out to go-util/imaging package.