fix(resize): Correct resizeimg when use sub directories in url (closes #4708)