Had to move create_thumbnail to layers/models.py for circular import issues in layers/utils.py