Strip extra classes from collage image.