Sets up form to put images into groups