Use === instead of == \nStops script execution after redirecting
Adds to the right place images
Moves resources to the right places