refactored the image renderer
refactored the image renderer
refactored the slice renderer
more refactoring