fix(resize): Correct resizeimg when use sub directories in url (refs #4707)