cleanup of image class
move get_image_plane to image class