Add support for loading dds files
(cherry picked from commit 00fee8313844fe704257e017c8cef62ec8570921)