loaded images in a way that works for applets and applications. took forever