* detect image file format by extension. add screenshot. fix calculate nearest light counter inicialization