Fix initial dot when signing starts, resetting image on clear and a little restructuring