Made getImageSrc arguments optional