fix new xcode version compile error, and do not load image if url is empty