missing image height/width bug

I fixed the missing image height/width bug that occasionally crops up when it takes longer to load the new image than it takes to call it's width/height. Also, I fixed some other minor stuff.