update lsl: more safety in image handling