rotate and crop card