An Automated Hardware-based Tone Mapping System For Displaying Wide Dynamic Range Images