create method for rotating image; rename method getEdges; add comments