only allocate for the images we're using