implement a rudimentary image class