Generation img on form submit.