Corrected some errors in the comments
Fixed some problems

- Don't clear history after saving
- Handle switch to grayscale/rgb