According to types.ts and lib.js, toBuffer() should accept type argument and support "image/png" as well as "image/jpeg". However, a PNG image is created even if "image/jpeg" is specified.
PNG's can be pretty big for photos, JPG would be nice to have thumbnail creation and such.