Fixed the problem with inserting images in ContentBlock. Added tests for this.