Hello. You can also modify file "media/system/js/modal.js" You need to set up "marginImage" property in line ~23.
More