Eliminate fd_mode and instead add SAVE_IMAGE environment variable

Signed-off-by: Ilya Nelkenbaum <ilya@nelkenbaum.com>