Use widget size for legend image. Use 40% of widget for frame
Show map when clicking map in legend page
Fix line endings