Added read/write to image

Also created the pathfinder class, though no pathfinding occurs yet.