What currently happens when creating a thumbnail fails?  If we have a particular way of handling this, I'm not aware of it, so I'm not really sure how to even test for failure.  If it crashes, obviously this code won't be reached, but I'm not sure about other failures or failure conditions.  Does create_thumbnail return anything?