Colorization using Optimization