Fix non-working JPEG images
It is necessary to change the way of how we perceive the protocol setting. It is not per-layer, but global for all layers in a visualisation.
Somehow there is mor stuff than I feel has to be there, I will need to look into it.