Added snapshots on custom viewcontroller to make rotations smoother