Added ImageBlock handling to Writer and Parser