Try going into system preferences, and go into CD and DVD (or something like that).
In there, change the option for what happens when a disc with photos on it is inserted. I think this is for all drives, not just optical (CD and DVD), despite the name of the preference pane.