Add minimum render size and switch to PNG.

We were noticing JPEG compression on large images generated from this library. This change introduces a minimum size and then resizes the image using an anti-aliased filter. It also defaults to PNG because it is loseless.