Added functions needed to generate a password from the picture drawn by the user.