There is a black border on the edge of the scanned image, what could cause that?

Black border removal is not turned on.  If it is turned on and the black edge is still there, look at the black background bar for dust or dirt.  That will cause it to be picked up as the edge of the document.