refactor image field