Decreased nesting level with an early return and added comment.
- Removed unnecessary XXXFileName properties from Diagram.
- Renamed and clarified comments for method that extract image file from Diagram content.
Added highlighting of the current editor line (configuration to come).