Remove jpgjs and png.js submodules.

This change removes jpgjs and png.js submodules and makes use of Image class instead to load pictures.