fix bug in image plugin re. semanticblock refactor