Generating an HDR Image