Some changes to the GP image cost function