Fixed serious bug in TransformSampleWindow

- Replaced manual window in PhysicalCamera with TransformSampleWindow