Fix image upload for sub-directory installs