Generation of img works. To fix :Bug about buttons.