Creating classes to minipulate 3D images in different ways