Added remaining jsdoc documentation. Changed image download code.