adding local images, and renaming some variables