locoimage: optimisation by Michael (lemi)