Added a 2d image class.