Fixed so that the largest side is turned against the camera
fixed a bug with rotation in previous commit
removed some couts
did some fixes for dynamic image and slice renderer