Set up form to put images in groups