Added mirroring and rotating.