Got the program to run but it will require debugging because image is completely different from desired result