fix bitmap rotate/flip interaction

closes PR 14585