This also separates the blend-to-screen part of render_layer into a helper function, as that will be useful in the future with public layer elements. Relates to #725