some fixes and generalizations made to PictureFrame and blend shaders