Lowercasing your string with ez!
Math.random with min & max range value
Fit image into HTML canvas depends on image's aspect ratio and orientation