Ghost imaging with the use of the variance of the difference photocurrent