An image encryption algorithm based on novel block scrambling scheme and Josephus sequence generator