Image generation and leds behavior correction.
Signed off by: José Vázquez <pepvf@mixmail.com>