Updated image preloading
Fixed some gui issues