Cleaned up block texture code