added all functions from LibRaw api