corrected reflection to work with asymmetrical/rotated shapes