Added imagepath, but not used yet
Refactored undo and draw, not finished