CUDA Generic Image Processing