second, different version with loading all images