loading the image consistently now, lots of code to clean up