Stop automatically opening Photos.app when inserting formatted SD card
Image Capture manages which app is launched for a device. You can disable this functionality entirely by running the following then logging out:

defaults write com.apple.ImageCapture disableHotPlug -bool TRUE