Optoisolator for high-side switch of relay

I have a sealed relay and motor that I am switching with a simple NPN+PNP high-side switch. I wish to isolate this to reduce noise on sensors etc in the circuit. The relay coil needs 12V 17mA (or in some cases 5V 41mA). Can the COM-00314 opto-isolator (https://www.sparkfun.com/products/314) be used for this, and if so does it just replace the PNP in my circuit, and I keep the NPN?

Here is a schematic: https://www.dropbox.com/s/0hnr2eo4jaxnf … ematic.jpg

I think I’d go the other way round. Use the opto to replace the NPN and keep the PNP.