add instance variables for images