Added debug flag for showing images