Added infrastructure for the jpeg comparison operations.