Added svg to image types regex
Added access to settings object in callbacks.