initial commit, save image works unexpectedly