Really not sure what all I changed... was trying to fix null pointer exception with image read-in