Stop Apple Photos from auto launching

Simply open a terminal and enter:

[code]defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool YES[/code]