updates to some imaging code