I used that name since savePreview isn't directly callable, and the bad filename was passed by the caller into createThumbnaileAndPreview, which just passed it along to savePreview.

I've never really dealt with nested functions before, so I'm not sure of the typical conventions used.