Add SR targets handling code.
Automatically refresh preview when texture is changed (Changing the texture would result in a preview image with no name)