How can I configure the output image with background removed, for example alpha, border,... similar to https://github.com/danielgatis/rembg/blob/main/rembg/bg.py#L34-L100