Creating thumbnails from photos with Python PIL