Truncate long image URLs