Command + Shift + 4 not saving image to clipboard
Command + Shift + 4 saves a file to the desktop, not to the clipboard.
Use Command + Control + Shift + 4 to save to the clipboard.
Take a look at this comment I wrote a few years back for the full list of keyboard shortcuts related to screenshots:
https://apple.stackexchange.com/a/204387/60161