Fixed relative resources and refactored
Added extension filter