Optimization Techniques for Image Processing