Updated Preview Functionality

Updated the preview functionality, only to take into account the allowed rotations.