Fixed a bug where jpeg quality wasn't being added due to an uninitialized metadata dictionary when metadata wasn't present