update bitmap encoding stuff