Optimizing color channels in image processing (Gaussian blur)

EDIT: Sorry for double pot. I got error 505