Source: https://www.howtogeek.com/207091/how-to-stop-iphoto-from-starting-when-you-plug-in-an-iphone-ipad-or-memory-card/