Changed filename to be optional when saving image and use current loaded image filename

Signed-off-by: Derek Myers <arcticpro@gmail.com>