A simple cuda wrapper for 2D images