Put the white receipt on a darker background.
The software is trying to do edge detection on the white receipt so when the background is similar color to the receipt you will get funny behaviors.
Another thing you can do is take the photo of the receipt from your hand -- yes, the software will allow this and crop out your hand.