How do I stop OS X attempting to import photos on each boot? Everytime I boot my iMac up while my iPhone is attached it attempts to import photos, giving me a message as soon as I login about how it "can not import photos because the device is locked". This has started up in the last 3-4 days, presumably because of an OS X update (I'm on version 10.10.5).

I don't want it to try importing them on boot (and it's annoying getting this message on each boot), and I've already disabled various settings to stop it importing automatically when I connect my iPhone. 

How can I prevent it from trying to import photos each time I boot my Mac up?
Connect phone.  
Launch Image Capture [in Applications]  
Set "Connecting this iPhone opens:" - No application