Image evolution in CUDA