Fixed bug where mirror function would be applied twice and removed redundant duplicate code to add warning for stale frames