Updated -dmg code
Revert "Updated -dmg code"

This reverts commit 49e3d5e21838af3200b8638faa1ee480ae9a8be0.