Set RGB color model for JPEG too, not just JPG.
This fixes background color when FreeHEP export dialog is used, where "jpeg" format name is used instead of "jpg".
allow custom page size in PDF (e.g. for creating embedded PDF into LaTeX)