Added support for reading images with grayscale + alpha and for images with depth 1, 2 or 4. R=nigeltao CC=golang-dev https://golang.org/cl/4174053