wip: add image migration to db