Lets build a simple image gallery application quickly, using HTML5's canvas. Demo index.html and myStyle.css file content are same as…