Learning Representations for Automatic Colorization