Implemented conditional sampling of images and component labels for MCGSM.