Save whole canvas if width and height aren't set
Add setting for image type and quality (fixes #11)