use getMainDevice() in ImageGradient