Saving image files using boost time