improved the random bitmap