convert with `trim`

Add `trim` option along with `trimFuzz` to be able to trim background edges with specified fuzziness before/instead of actually resizing it.