Finished img_to_graph, only needs proper f matrix and added observed variable to instantiate1()