fixed image upload bug: path not found error