Refactor the AddPakPaths to make it possible to set pak's scale factor.

This is needed when adding high DPI resources.