I'm a bit confused with how phototransistors work. Q1 in the image below looks like an NPN transistor. I'm not sure why there is a positive voltage on the collector. I know it must be right because this is how I see all of these optocouplers being used but I don't understand how its working. I'm used to the NPN transistor switching the negative load.