fix: remove abstractimagemetadata protected field
fix: remove protected fields
fix: writer configuration