Validate imageSrc