Updated openTransform to not overwrite Templates with matrix data

Useful in my case where I use the open algorithm by itself first to open a display a webcam image and then pass my query into an algorithm without having to open again.