some refactoring, implement some minigrid methods, begin working on parameters that determine whether to append vertices to image.