added matrix multiplication and image classes