Better method naming. Made generate image method private.