Added border timer and autogenerate img when correct