Upgrade bower components.
Refactor methods for downloading jpeg and pdf, to reuse the picture generation code.
Still refactoring the image generation.