I was recently using ImageDraw and passing negative coordinates for the destination rectangle, which resulted in some graphical glitches.
Shouldn't this say srcRec.x -= dstRec.x; ? Line 3366 would be updated accordingly as well.
I tried pre-clipping the coordinates, such that dstRec.X was never negative, before calling ImageDraw which fixed it for me.