Added resolution option

Added $res when converting from PDF to image, allowing to specify an output resolution. Default is 200, good quality can be 400.