writeImageFile() without snapshot()?