Trim image src path