Added save functions to bmp and png file classes.