Lots of stuff

I fixed display size issues, I changed how it determines what file is an
image, and i changed image placement when switching between images.