Fix for image URL parsing