Update hdrimwrite.m