Corrected the onRotation issue. It now correctly displays images and cell when being rotated