change way metadata is done, refactor image records