Fixed the ingest bug so that locator is created properly on creation, and not messed up on metadata.

Also moved image thumbnail extraction to after the asset saving.