Added window management and a primitive image class.