piece class and images