WICKET-5443 Increase randomness and reduce predictability of CaptchaImageResource rendered images

increase "randomness" and reduce predictability of CaptchaImageResource rendered images
Add Apache licence

(cherry picked from commit 3aff2f5fbdb98a0a05f2724a70f86068583d4dc9)