Resolved a null pointer exception for null image urls