fixed image loading and stuff