Use imagesloaded to only adjust once images have been loaded. updates #383