Use Constants.DEBUG in image cache