Moving image loading to environment.